package cn.stylefeng.guns.modular.demand.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 需求表
 * </p>
 *
 * @author jalor
 * @since 2019-10-20
 */
@TableName("demand")
public class Demand implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    @TableField("code")
    private String code;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 状态
     */
    @TableField("status")
    private Boolean status;

    /**
     * 删除状态[0=未删除,1=已删除]
     */
    @TableField("delete_status")
    private Boolean deleteStatus;

    /**
     * 产品ID
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 功能ID
     */
    @TableField("feature_id")
    private Long featureId;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 最后更新人
     */
    @TableField("last_midified_user")
    private Long lastMidifiedUser;

    /**
     * 最后更新时间
     */
    @TableField("last_modified_time")
    private Date lastModifiedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Boolean deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getFeatureId() {
        return featureId;
    }

    public void setFeatureId(Long featureId) {
        this.featureId = featureId;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getLastMidifiedUser() {
        return lastMidifiedUser;
    }

    public void setLastMidifiedUser(Long lastMidifiedUser) {
        this.lastMidifiedUser = lastMidifiedUser;
    }

    public Date getLastModifiedTime() {
        return lastModifiedTime;
    }

    public void setLastModifiedTime(Date lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
    }

    @Override
    public String toString() {
        return "Demand{" +
        "id=" + id +
        ", code=" + code +
        ", name=" + name +
        ", status=" + status +
        ", deleteStatus=" + deleteStatus +
        ", productId=" + productId +
        ", featureId=" + featureId +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", lastMidifiedUser=" + lastMidifiedUser +
        ", lastModifiedTime=" + lastModifiedTime +
        "}";
    }
}
